home *** CD-ROM | disk | FTP | other *** search
Text File | 1987-10-08 | 12.2 KB | 769 lines | [TEXT/MPS ] |
- #include "Types.r"
-
- /* custom resource for phone numbers */
- type 'DIAL' {
- cstring;
- };
-
-
- /* These define's are used in the MENU resources to disable specific
- menu items. */
- #define AllItems 0b1111111111111111111111111111111 /* 31 flags */
- #define MenuItem1 0b0000000000001
- #define MenuItem2 0b0000000000010
- #define MenuItem3 0b0000000000100
- #define MenuItem4 0b0000000001000
- #define MenuItem5 0b0000000010000
- #define MenuItem6 0b0000000100000
- #define MenuItem7 0b0000001000000
- #define MenuItem8 0b0000010000000
- #define MenuItem9 0b0000100000000
- #define MenuItem10 0b0001000000000
- #define MenuItem11 0b0010000000000
- #define MenuItem12 0b0100000000000
- #define MenuItem13 0b1000000000000
- /* Include font with vt100 graphic characters */
-
- include "vt100font" ;
-
- resource 'MENU' (128, "Apple", preload) {
- 128, textMenuProc,
- AllItems & ~MenuItem2, /* Disable item #2 */
- enabled, apple,
- {
- "About MiniTerm…",
- noicon, nokey, nomark, plain;
- "-",
- noicon, nokey, nomark, plain
- }
- };
-
- resource 'MENU' (129, "File", preload) {
- 129, textMenuProc,
- AllItems & ~(MenuItem5 | MenuItem9 | MenuItem11 ),
- enabled, "File",
- {
- "Start Text Capture...",
- noicon, nokey, nomark, plain;
- "Start Text Upload...",
- noicon, nokey, nomark, plain;
- "Text File Creator",
- noicon, "\0x1B","\0D139",plain;
- "Text File Pacing...",
- noicon, nokey, nomark, plain;
- "-",
- noicon, nokey, nomark, plain;
- "Receive Xmodem...",
- noicon, nokey, nomark, plain;
- "Send Xmodem...",
- noicon, nokey, nomark, plain;
- "Xmodem Preferences",
- noicon, "\0x1B", "\0D140", plain;
- "-",
- noicon, nokey, nomark, plain;
- "Launch...",
- noicon, nokey, nomark, plain;
- "-",
- noicon, nokey, nomark, plain;
- "Quit",
- noicon, nokey, nomark, plain
- }
- };
-
- resource 'MENU' (130, "Edit", preload) {
- 130, textMenuProc,
- AllItems & ~(MenuItem1 | MenuItem2), /* Disable items #1 & #2 */
- enabled, "Edit",
- {
- "Undo",
- noicon, nokey, nomark, plain;
- "-",
- noicon, nokey, nomark, plain;
- "Cut",
- noicon, nokey, nomark, plain;
- "Copy",
- noicon, nokey, nomark, plain;
- "Paste",
- noicon, nokey, nomark, plain;
- "Clear",
- noicon, nokey, nomark, plain
- }
- };
-
- resource 'MENU' (131, "Options", preload) {
- 131, textMenuProc,
- AllItems & ~( MenuItem4 | MenuItem8 | MenuItem13),
- enabled, "Options",
- {
- "Baud",
- noicon, "\0x1B", "\0D132", plain;
- "Parity",
- noicon, "\0x1B", "\0D133", plain;
- "Data Bits",
- noicon, "\0x1B", "\0D134", plain;
- "-",
- noicon, nokey, nomark, plain;
- "Flow Control",
- noicon, "\0x1B", "\0D136",plain;
- "BS",
- noicon, "\0x1B", "\0D137",plain;
- "Local Echo",
- noicon, "\0x1B", "\0D138",plain;
- "-",
- noicon, nokey, nomark, plain;
- "Show Clock",
- noicon, nokey, check, plain;
- "Unlock Keyboard",
- noicon, nokey, nomark, plain;
- "Echo Cr As CrLf",
- noicon, nokey, nomark, plain;
- "Read Statistics",
- noicon, nokey, nomark, plain;
- "-",
- noicon, nokey, nomark, plain;
- "Interpret Controls",
- noicon, nokey, check, plain;
- "Reset Terminal",
- noicon, nokey, nomark,plain;
- "Cursor Options...",
- noicon, nokey, nomark, plain
-
- }
- };
-
- resource 'MENU' (132, "Baud", preload) {
- 132, textMenuProc,
- allEnabled,
- enabled, "Baud",
- {
- "300",
- noicon, nokey, nomark, plain;
- "1200",
- noicon, nokey, check, plain;
- "2400",
- noicon, nokey, nomark, plain;
- "4800",
- noicon, nokey, nomark, plain;
- "9600",
- noicon, nokey, nomark, plain;
- "19200",
- noicon, nokey, nomark, plain;
- "57600",
- noicon, nokey, nomark, plain
-
- }
- };
-
- resource 'MENU' (133, "Parity", preload) {
- 133, textMenuProc,
- allEnabled,
- disabled, "Parity",
- {
- "No Parity",
- noicon, nokey, check, plain;
- "Odd Parity",
- noicon, nokey, nomark, plain;
- "Even Parity",
- noicon, nokey, nomark, plain
-
- }
- };
-
- resource 'MENU' (134, "Data Size", preload) {
- 134, textMenuProc,
- allEnabled,
- disabled, "Data Size",
- {
- "Seven Bits",
- noicon, nokey, nomark, plain;
- "Eight Bits",
- noicon, nokey, check, plain
- }
- };
-
- resource 'MENU' (135, "Phone", preload) {
- 135, textMenuProc,
- allEnabled,
- enabled, "Phone",
- {
- "Phone Manager...",
- noicon, nokey, nomark, plain
- }
- };
-
- resource 'MENU' (136, "Flow", preload) {
- 136, textMenuProc,
- allEnabled,
- enabled, "Data Size",
- {
- "Enabled",
- noicon, nokey, check, plain;
- "Disabled",
- noicon, nokey, nomark, plain
- }
- };
-
- resource 'MENU' (137, "BS", preload) {
- 137, textMenuProc,
- allEnabled,
- enabled, "Data Size",
- {
- "Send Delete",
- noicon, nokey, check, plain;
- "Send BS",
- noicon, nokey, nomark, plain
- }
- };
-
- resource 'MENU' (138, "LocalEcho", preload) {
- 138, textMenuProc,
- allEnabled,
- enabled, "LocalEcho",
- {
- "Enabled",
- noicon, nokey, nomark, plain;
- "Disabled",
- noicon, nokey, check, plain
- }
- };
-
- resource 'MENU' (139,"Creator",preload){
- 139, textMenuProc,
- allEnabled,
- enabled, "Creator",
- {
- "EDIT",
- noicon, nokey, nomark, plain;
- "MACA",
- noicon, nokey, nomark, plain;
- "MSWD",
- noicon, nokey, nomark, plain;
- "MPS ",
- noicon, nokey, check, plain
- }
- };
-
- resource 'MENU' ( 140, "XmodemPref",preload){
- 140, textMenuProc,
- AllItems & ~MenuItem4,
- enabled, "XModem Prefs",
- {
- "MacBinary",
- noicon, nokey, check, plain;
- "Text",
- noicon, nokey, nomark, plain;
- "Straight",
- noicon, nokey, nomark, plain;
- "-",
- noicon, nokey, nomark, plain;
- "Disable CRC",
- noicon, nokey, nomark, plain;
- "128 Byte Buffers",
- noicon, nokey, check, plain;
- "Fast Download",
- noicon, nokey, nomark, plain
- }
- };
-
- resource 'MENU' (141, "Port", preload){
- 141, textMenuProc,
- allEnabled,
- enabled, "Port",
- {
- "Modem Port",
- noicon, nokey, check, plain;
- "Printer Port",
- noicon, nokey, nomark, plain
- }
- };
-
- resource 'ALRT' (129) {
- {74, 62, 184, 436},
- 18742,
- { /* array: 4 elements */
- /* [1] */
- OK, visible, silent;
- /* [2] */
- OK, visible, silent;
- /* [3] */
- OK, visible, silent;
- /* [4] */
- OK, visible, silent
- }
- };
-
- resource 'DITL' (18742) {
- { /* array DITLarray: 5 elements */
- /* [1] */
- {74, 270, 94, 330},
- Button {
- enabled,
- "OK"
- };
- /* [2] */
- {16, 16, 32, 240},
- StaticText {
- disabled,
- "Max Chars Found In Serial Buffer:"
- };
- /* [3] */
- {40, 16, 56, 240},
- StaticText {
- disabled,
- "Average Read Size:"
- };
- /* [4] */
- {16, 240, 32, 320},
- StaticText {
- disabled,
- "^0"
- };
- /* [5] */
- {40, 240, 56, 320},
- StaticText {
- disabled,
- "^1"
- }
- }
- };
-
- resource 'DLOG' (128) {
- {40, 90, 320, 420},
- altDBoxProc,
- visible,
- noGoAway,
- 0x0,
- 128,
- ""
- };
-
- resource 'DITL' (128) {
- { /* array DITLarray: 6 elements */
- /* [1] */
- {10, 115, 31, 240},
- StaticText {
- disabled,
- "MiniTerm V2.0"
- };
- /* [2] */
- {31, 103, 48, 222},
- StaticText {
- disabled,
- "Copyright 1987"
- };
- /* [3] */
- {50, 110, 111, 215},
- StaticText {
- disabled,
- "Jerry LeVan 325 Boone Trail Richmond Ky "
- "40475"
- };
- /* [4] */
- {260, 5, 276, 125},
- StaticText {
- disabled,
- "Written In MPW C"
- };
- /* [5] */
- {135, 20, 170, 317},
- StaticText {
- disabled,
- "Note 1: Hold Down Mouse During Launch to"
- " Select Port."
- };
- /* [6] */
- {185, 20, 216, 310},
- StaticText {
- disabled,
- "Note 2: Fast Down Load Will ACK As Soon "
- "As A Packet Has Been Received."
- }
- }
- };
-
- resource 'ALRT' (128, "Message") {
- {82, 36, 248, 470},
- 30627,
- { /* array: 4 elements */
- /* [1] */
- OK, visible, sound1;
- /* [2] */
- OK, visible, sound1;
- /* [3] */
- OK, visible, sound1;
- /* [4] */
- OK, visible, sound1
- }
- };
-
- resource 'DITL' (30627) {
- { /* array DITLarray: 4 elements */
- /* [1] */
- {112, 320, 132, 380},
- Button {
- enabled,
- "OK"
- };
- /* [2] */
- {59, 49, 76, 405},
- StaticText {
- disabled,
- "^0"
- };
- /* [3] */
- {81, 51, 97, 115},
- StaticText {
- disabled,
- "^1"
- };
- /* [4] */
- {82, 118, 98, 246},
- StaticText {
- disabled,
- "^2"
- }
- }
- };
-
- resource 'DLOG' (131) {
- {74, 84, 266, 420},
- altDBoxProc,
- visible,
- goAway,
- 0x0,
- 131,
- "New Dialog"
- };
- resource 'DITL' (131) {
- { /* array DITLarray: 15 elements */
- /* [1] */
- {24, 16, 40, 120},
- StaticText {
- enabled,
- "Transaction:"
- };
- /* [2] */
- {48, 15, 64, 119},
- StaticText {
- disabled,
- "Protocol:"
- };
- /* [3] */
- {72, 16, 88, 120},
- StaticText {
- disabled,
- "Error Handling:"
- };
- /* [4] */
- {96, 16, 112, 120},
- StaticText {
- disabled,
- "File:"
- };
- /* [5] */
- {120, 16, 136, 64},
- StaticText {
- disabled,
- "Block: "
- };
- /* [6] */
- {120, 64, 136, 132},
- StaticText {
- disabled,
- ""
- };
- /* [7] */
- {120, 136, 136, 199},
- StaticText {
- disabled,
- ""
- };
- /* [8] */
- {120, 209, 136, 297},
- StaticText {
- disabled,
- ""
- };
- /* [9] */
- {144, 16, 160, 80},
- StaticText {
- disabled,
- "Status:"
- };
- /* [10] */
- {144, 72, 160, 325},
- StaticText {
- disabled,
- ""
- };
- /* [11] */
- {169, 87, 185, 239},
- StaticText {
- disabled,
- "(Click Mouse To Abort)"
- };
- /* [12] */
- {96, 120, 112, 324},
- StaticText {
- disabled,
- ""
- };
- /* [13] */
- {24, 120, 40, 288},
- StaticText {
- disabled,
- ""
- };
- /* [14] */
- {48, 120, 64, 326},
- StaticText {
- disabled,
- ""
- };
- /* [15] */
- {72, 120, 88, 326},
- StaticText {
- disabled,
- ""
- }
- }
- };
- resource 'DLOG' (5088, "Pacing") {
- {52, 88, 246, 410},
- altDBoxProc,
- visible,
- noGoAway,
- 0x0,
- 3579,
- "New Dialog"
- };
-
- resource 'DITL' (3579, "Pacing") {
- { /* array DITLarray: 7 elements */
- /* [1] */
- {152, 232, 172, 292},
- Button {
- enabled,
- "OK"
- },
- /* [2] */
- {16, 64, 32, 256},
- StaticText {
- disabled,
- "Text File Upload Preferences"
- },
- /* [3] */
- {39, 64, 56, 201},
- CheckBox {
- enabled,
- "Use Line Pacing"
- },
- /* [4] */
- {70, 207, 86, 227},
- EditText {
- enabled,
- ":"
- },
- /* [5] */
- {69, 66, 88, 186},
- StaticText {
- disabled,
- "Pacing Character:"
- },
- /* [6] */
- {115, 208, 129, 235},
- EditText {
- enabled,
- "0"
- },
- /* [7] */
- {112, 16, 154, 201},
- StaticText {
- disabled,
- "Delay Between Characters:\n(In Ticks,Alwa"
- "ys Used.)"
- }
- }
- };
-
- resource 'DLOG' (7835, "Cursor Options") {
- {72, 120, 266, 368},
- altDBoxProc,
- visible,
- goAway,
- 0x0,
- 7281,
- "New Dialog"
- };
-
- resource 'DITL' (7281, "Cursor Options") {
- { /* array DITLarray: 6 elements */
- /* [1] */
- {160, 168, 176, 224},
- Button {
- enabled,
- "OK"
- },
- /* [2] */
- {8, 64, 24, 168},
- StaticText {
- disabled,
- "Cursor Options"
- },
- /* [3] */
- {40, 40, 56, 152},
- RadioButton {
- enabled,
- "Block Cursor"
- },
- /* [4] */
- {72, 40, 88, 168},
- RadioButton {
- enabled,
- "Underline Cursor"
- },
- /* [5] */
- {112, 40, 128, 160},
- CheckBox {
- enabled,
- "Blinking Cursor"
- },
- /* [6] */
- {136, 40, 152, 160},
- CheckBox {
- enabled,
- "Cursor Visible"
- }
- }
- };
-
- resource 'WIND' (128,"AppWind"){
- {40,8,312,504},
- documentProc,
- visible,
- noGoAway,
- 0x0,
- "MiniTerm v2.0"
- };
-
- /* phone numbers */
-
- resource 'DIAL' (128, "BigVax", preload ) {
- "622-2340";
- };
-
- resource 'DIAL' (129, "BabyVax",preload ) {
- "622-2042";
- };
-
- resource 'DIAL' (130, "CompuServe [76354,364]", preload) {
- "623-1807"
- };
-
- resource 'DIAL' (131, "MCI", preload) {
- "1-800-234-6245"
- };
-
- resource 'DIAL' (132, "Genie [XPC12663]", preload) {
- "1-253-1556"
- };
-
- resource 'DIAL' (133, "UNIX1", preload) {
- "622-2250"
- };
-
- resource 'DITL' (200) {
- { /* array DITLarray: 13 elements */
- /* [1] */
- {40, 368, 56, 424},
- Button {
- enabled,
- "Dial"
- },
- /* [2] */
- {80, 368, 96, 424},
- Button {
- enabled,
- "Cancel"
- },
-
- /* [3] */
- {224, 368, 240, 424},
- Button {
- enabled,
- "Add"
- },
- /* [4] */
- {120, 368, 136, 424},
- Button {
- enabled,
- "Delete"
- },
- /* [5] */
- {224, 8, 243, 61},
- StaticText {
- enabled,
- "Name:"
- },
- /* [6] */
- {256, 8, 276, 68},
- StaticText {
- enabled,
- "Number:"
- },
- /* [7] */
- {224, 80, 240, 344},
- EditText {
- enabled,
- "Put Name Here"
- },
- /* [8] */
- {256, 80, 272, 344},
- EditText {
- enabled,
- "Put Number Here"
- },
- /* [9] */
- {37, 9, 146, 323},
- UserItem {
- enabled
- },
- /* [10] */
- {152, 8, 176, 128},
- StaticText {
- disabled,
- "Current Number:"
- },
- /* [11] */
- {152, 128, 176, 320},
- StaticText {
- disabled,
- ""
- },
- /* [12] */
- {192, 8, 208, 408},
- StaticText {
- disabled,
- "To Add An Entry Fill Bottom Fields And C"
- "lick The Add Button."
- },
- /* [13] */
- {8, 120, 26, 210},
- StaticText {
- disabled,
- "Phone Book"
- }
- }
- };
-
- resource 'DLOG' (200, "Dialer") {
- {36, 20, 330, 494},
- altDBoxProc,
- visible,
- noGoAway,
- 0x0,
- 200,
- "New Dialog"
- };
-
-